﻿namespace RaceList.activity.util
{
    public class ErrorMessage
    {
        public ErrorMessage()
        {
            Status = Status.Ok;
            Finished = false;
            IsShowException = false;
        }

        public bool Finished { get; set; }
        public Status Status { get; set; }
        public double Score { get; set; }
        public string Exception { get; set; }

        /// <summary>
        ///     表示是否想浏览器展示异常
        /// </summary>
        public bool IsShowException { get; set; }

        /// <summary>
        ///     结束后，Relaygame页面向那个页面跳转
        /// </summary>
        public string Url { get; set; }
    }

    public enum Status
    {
        Ok = 200,
        Error = 500
    }
}